<template>
  <div class="noticeDetail">
    <div class="richtext" v-html="detail?.content"></div>
  </div>
</template>
<script>
export default {
  name: '',
  components: {

  },
  mixins: [],
  props: {

  },
  data () {
    return {
      detail: {}
    }
  },
  created () {
    this.getDetail()
  },
  computed: {

  },
  watch: {

  },
  mounted () {

  },
  methods: {
    getDetail () {
      this.$axios
        .post(this.$api.noticeinfo, {
          id: this.$route.query.id
        })
        .then((res) => {
          if (res.data.code == 1) {

            this.detail = res.data.data

            console.log(this.detail);
          }
        });
    }
  }
};
</script>
<style lang='less' scoped>
.noticeDetail {
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.richtext {
  width: 343px;
  min-height: 741px;
  background: #f9f9f9;
  background: #ffffff;
  border-radius: 6px;
  w /deep/p {
    padding: 0;
    margin: 0;
    line-height: 26px;
    word-break: break-all;
    word-wrap: break-word;
  }
  /deep/ img {
    display: block;
    width: 100%;
    height: 100%;
  }
}
</style>